package de.mouseless.csv2sql.model;

public class AbstractColumn extends AbstractObject {
   boolean primaryKey = false;
   boolean nullable = false;
   boolean unique = false;
   DataType type = null;

   public boolean isUnique() {
      return unique;
   }

   public void setUnique(boolean unique) {
      this.unique = unique;
   }

   public boolean isPrimaryKey() {
      return primaryKey;
   }

   public void setPrimaryKey(boolean primaryKey) {
      this.primaryKey = primaryKey;
   }

   public DataType getType() {
      return type;
   }

   public void setType(DataType type) {
      this.type = type;
   }

   public AbstractColumn(String name, boolean nullable) {
      super(name);
      this.nullable = nullable;
   }

   public boolean isNullable() {
      return nullable;
   }

   public void setNullable(boolean nullable) {
      this.nullable = nullable;
   }

}
